﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MRTGList.aspx.cs" Inherits="MRTGList"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>            
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="MRTGList.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script> 
    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    
    <script src="js/FileUpload.js" type="text/javascript"></script>
    
    <%--

    

    
    <!-- TinyMCE -->

    <script src="js/tiny_mce.js" type="text/javascript"></script>

    <!-- /TinyMCE -->--%>
    <link href="MRTGList.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
<% Response.Write(GenerateSideMenu()); %>

</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnMRTG" runat="server"
    EnableViewState="false">
    <div id="pnlMRTGTitle"></div>
    <div id="pnlMRTG" runat="server"></div> 
    <fieldset class="m_fs_border" id="fs_MRTGList">
        <legend><a class="lnk" href="javascript:toggle('MRTGList');">MRTG List</a>
        </legend>
        <dl class="m_fs">
            <div id="div_MRTGList">
            
            <dxwgv:ASPxGridView ID="dgMRTGList" KeyFieldName="T_MONITORING_MRTG_ID" ClientInstanceName="dgMRTGList_c"
                runat="server" AutoGenerateColumns="false" Width="100%" Font-Size="Small"
                 OnCustomCallback="dgMRTGList_CustomCallback">
                <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true"
                    Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                    </Header>
                    <AlternatingRow Enabled="True">
                    </AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller">
                    </Cell>
                </Styles>
                <SettingsPager PageSize="10">
                </SettingsPager>
                <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true" ShowHorizontalScrollBar="true" />
                <SettingsBehavior AllowSort="true" />
                <%--<ClientSideEvents EndCallback="dgCallView_c_EndCallBack" />--%>
                <Columns>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_NAME" Name="COMPANY_NAME" Caption="COMPANY" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCompanyLinkColumn(Eval("CUSTOMER_ID").ToString(), Eval("COMPANY_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="NETWORK_NO" Name="NETWORK_NO" Caption="NETWORK NO" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="ORIGINAL_FILENAME" Name="ORIGINAL_FILENAME"
                     Caption="MRTG FILE" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetDownloadLinkColumn(Eval("T_FILE_UPLOAD_ID").ToString(), Eval("ORIGINAL_FILENAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="NOTE" Name="NOTE" Caption="NOTE" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="EMPLOYEE_NAME" Name="EMPLOYEE_NAME" Caption="UPLOAD BY" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCARLinkColumn(Eval("ICP_USER_ID").ToString(), Eval("EMPLOYEE_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataDateColumn FieldName="START_DATE" Name="START_DATE"
                     Caption="START DATE" PropertiesDateEdit-DisplayFormatString="dd-MMM-yyyy">
                    </dxwgv:GridViewDataDateColumn>
                    <dxwgv:GridViewDataDateColumn FieldName="END_DATE" Name="END_DATE"
                     Caption="END DATE" PropertiesDateEdit-DisplayFormatString="dd-MMM-yyyy">
                    </dxwgv:GridViewDataDateColumn>
                </Columns>
            </dxwgv:ASPxGridView>
			<dxwgv:ASPxGridViewExporter ID="dgExporter" GridViewID="dgMRTGList" runat="server">
                </dxwgv:ASPxGridViewExporter>
                <dxe:ASPxButton ID="btnExport" runat="server" Text="Save To XLS" UseSubmitBehavior="false"
                    OnClick="btnExport_Click" ClientInstanceName="btnExport_c" Image-Url="images/excel.png" 
                    Width="120px" Height="20px" HorizontalAlign="Left">
                </dxe:ASPxButton>
            </div>
        </dl>
    </fieldset>
    
</asp:Content>
